package cn.kn.common.model;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * @author WangJiang
 * @create 2020-11-25 10:05
 */

@AllArgsConstructor
@NoArgsConstructor
@Getter
public enum RCode {

    SUCCESS(20000,"操作成功！"),
    ERROR(40000,"操作失败！"),
    SYS_ERROR(40001,"系统错误，请与管理员联系！"),
    ROLE_NAMER_EPEAT(40100,"角色名称重复"),
    TOKEN_ERROR(40002,"token错误，请重新登录！"),
    TOKEN_INVALID(4003,"token过期，请重新登入！"),
    USER_NOT_EXIST(40004,"用户名或密码错误！"),
    NO_AUTH(40005,"Token无效，您无权访问该接口!"),
    PARM_ERROR(40006,"参数错误！")
    ;
    private Integer code;
    private String msg;


}
